﻿export default [
  {
    path: '/',
    component: '../layouts/BlankLayout',
    routes: [
      {
        path: '/',
        component: '../layouts/SecurityLayout',
        routes: [
          {
            path: '/',
            component: '../layouts/BasicLayout',
            routes: [
              {
                path: '/',
                redirect: '/organization',
              },
              {
                name: 'organization',
                icon: 'team',
                path: '/organization',
                hideChildrenInMenu: true,
                routes: [
                  {
                    path: '/organization',
                    redirect: '/organization/list',
                  },
                  {
                    name: 'list',
                    icon: 'team',
                    path: '/organization/list',
                    component: './organization/List',
                  },
                  {
                    name: 'create',
                    icon: 'team',
                    path: '/organization/create',
                    component: './organization/CreateForm',
                  },
                  {
                    name: 'modify',
                    icon: 'team',
                    path: '/organization/modify',
                    component: './organization/ModifyForm',
                  },
                  {
                    component: './404',
                  },
                ],
              },
              {
                name: 'integrate',
                icon: 'team',
                path: '/integrate',
                hideChildrenInMenu: true,
                routes: [
                  {
                    path: '/integrate',
                    redirect: '/integrate/list',
                  },
                  {
                    name: 'list',
                    icon: 'team',
                    path: '/integrate/list',
                    component: './integrate/List',
                  },
                  {
                    component: './404',
                  },
                ],
              },
              {
                name: 'user',
                icon: 'user',
                path: '/user',
                hideChildrenInMenu: true,
                routes: [
                  {
                    path: '/user',
                    redirect: '/user/list',
                  },
                  {
                    name: 'list',
                    icon: 'user',
                    path: '/user/list',
                    component: './user/List',
                  },
                  {
                    component: './404',
                  },
                ],
              },
              {
                name: 'role',
                icon: 'user',
                path: '/role',
                hideChildrenInMenu: true,
                routes: [
                  {
                    path: '/role',
                    redirect: '/role/list',
                  },
                  {
                    name: 'list',
                    icon: 'user',
                    path: '/role/list',
                    component: './user/List',
                  },
                  {
                    component: './404',
                  },
                ],
              },
              {
                name: 'function',
                icon: 'user',
                path: '/function',
                hideChildrenInMenu: true,
                routes: [
                  {
                    path: '/function',
                    redirect: '/function/list',
                  },
                  {
                    name: 'list',
                    icon: 'user',
                    path: '/function/list',
                    component: './function/List',
                  },
                  {
                    component: './404',
                  },
                ],
              },
              {
                name: 'interface',
                icon: 'user',
                path: '/interface',
                hideChildrenInMenu: true,
                routes: [
                  {
                    path: '/interface',
                    redirect: '/interface/list',
                  },
                  {
                    name: 'list',
                    icon: 'user',
                    path: '/interface/list',
                    component: './interface/List',
                  },
                  {
                    component: './404',
                  },
                ],
              },
              {
                component: './404',
              },
            ],
          },
          {
            component: './404',
          },
        ],
      },
    ],
  },
  {
    component: './404',
  },
];
